Skip to content

Conversation

@keith-packard
Copy link
Contributor

This lets Kconfig stanzas detect newlib support in the toolchain

Working on zephyr PR zephyrproject-rtos/zephyr#54637

Signed-off-by: Keith Packard [email protected]

This lets Kconfig stanzas detect newlib support in the toolchain

Signed-off-by: Keith Packard <[email protected]>
Copy link
Contributor

@galak galak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put generic Kconfig options like this in Zephyr proper, and just select them here.

def_bool y
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE

config NEWLIB_SUPPORTED
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a generic option should be in here. For example how will the arm-gnu-embedded toolchain enable NEWLIB_SUPPORTED. This should be in Zephyr proper and have something like:

config TOOLCHAIN_ZEPHYR_SUPPORTS_NEWLIB`
  def_bool y
  select NEWLIB_SUPPORTED

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or add select NEWLIB_SUPPORTED under config TOOLCHAIN_ZEPHYR_0_16

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already got a proposed patch which does that (no need for the version check, Zephyr SDK has always supported newlib). I was just following the suggestion about where similar mechanism for Picolibc should live, and that will live in sdk-ng. Happy to have it in Zephyr instead; it's a lot easier to manage there anyways.

Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephanosio stephanosio added the DNM DO NOT MERGE label Feb 20, 2023
@stephanosio
Copy link
Member

Closing as stale. Please re-open if this is still relevant.

@stephanosio stephanosio deleted the newlib-supported branch July 21, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DNM DO NOT MERGE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants